// app.js
App({
  //-----------全局共享的属性和方法-begin-----------------
  nickName: "",
  avatarUrl: "",
  globalMsg: "我是全局的数据",
  changeGlobalMsg(newMsg) {
    this.globalMsg = newMsg;
  },
  //-----------全局共享的属性和方法-end-----------------
  onLaunch() {
    this.nickName = wx.getStorageSync("nickName");
    this.avatarUrl = wx.getStorageSync("avatarUrl");
    // console.log(this);
  },
});
